let local = 1;// 1 正式   2服务  3本地
let BASE
let BASE_URL
let IMAGE_URL
let IMAGE_URL1
let FACTORY_URL
let FACTORY_FILE_URL
// console.log(uni.getSystemInfoSync())
switch (local) {
  case 1: // 正式
    BASE = ''
    // #ifdef H5
    BASE_URL = '/api/apis/'
    // #endif
    // #ifdef APP-PLUS
    BASE_URL=BASE + "https://www.findoma.com/apis/"   //http://192.168.100.165:10022/
    // #endif
	IMAGE_URL = BASE + 'https://www.findoma.com/'
	IMAGE_URL1 = BASE + 'https://www.findoma.com/file'
	FACTORY_URL = 'http://3x5a603746.qicp.vip:53085/api/'
	FACTORY_FILE_URL = 'http://3x5a603746.qicp.vip:53085/file/factory/uploadPath/'
    break
  case 2:
    BASE = ''
	// #ifdef H5
	BASE_URL = '/api/apis/'
	// #endif
	// #ifdef APP-PLUS
	BASE_URL=BASE + "http://192.168.100.100/apis/"   //http://192.168.100.165:10022/
	// #endif
  	IMAGE_URL = BASE + 'http://192.168.100.100'    // 'http://192.168.100.165:10022/api/handle'  //http://192.168.100.69:8089
	IMAGE_URL1 = BASE + 'http://192.168.100.100/file'   //http://192.168.100.165:10022/api/handle/profile
	FACTORY_URL = 'http://192.168.100.100:8082/';
	FACTORY_FILE_URL = 'http://3x5a603746.qicp.vip:53085/file/factory/uploadPath/';
    break
  case 3: // 本地联调
    BASE = ''
  	// #ifdef H5
  	BASE_URL = '/api/apis/'
  	// #endif
  	// #ifdef APP-PLUS
  	BASE_URL=BASE + "http://192.168.100.165:10022/apis/"   //http://192.168.100.165:10022/
  	// #endif
  	IMAGE_URL = BASE + 'http://192.168.100.69:8089'    // 'http://192.168.100.165:10022/api/handle'  //http://192.168.100.69:8089
  	IMAGE_URL1 = BASE + 'http://192.168.100.69:8089/profile'   //http://192.168.100.165:10022/api/handle/profile
	FACTORY_URL = 'http://192.168.100.233:8080/'
	FACTORY_FILE_URL = 'http://3x5a603746.qicp.vip:53085/file/factory/uploadPath/';
    break	
}
const URL = {
   //获取登录验证码
  GETCAPCHAIMAGE: BASE_URL + 'handle/captchaImage',
  SETMATCHACAPT:BASE_URL + 'handle/matchCaptchaCode',
  UPLOGIN:BASE_URL + 'uaa/oauth/token',
  //获取用户信息
  GETUSERTINFOR:BASE_URL + 'handle/getAppInfo',
  // 退出登录
  LOGINOUT:BASE_URL + 'uaa/appclient/logout',
  //案件类别
  EVENTTYPE:BASE_URL + 'handle/szcg/common/dict/eventType',
  //案件大类
  EVENTTYPE1:BASE_URL + 'handle/szcg/common/dict/eventTypelv1/',
  //案件小类
  EVENTTYPE2:BASE_URL + 'handle/szcg/common/dict/eventTypelv2/',
  // 立案条件
  EVENTTYPE3:BASE_URL + 'handle/szcg/common/dict/eventTypelv3/',
  //上报
  INSERTEVENT:BASE_URL + 'handle/app/event/insertEvent',
  //上传图片
  Upload1:BASE_URL + 'handle/common/uploadImage',
  //上报页面搜索
  EVENTTYPEBYNAME:BASE_URL + 'handle/szcg/common/dict/eventTypeByLv2Name',
   //查询待办案件统计
  GETEVENTCOUNT:BASE_URL + 'handle/app/event/getEventAllCounts/',
  // 查看全部案件
  GETEVENTLIST:BASE_URL + 'handle/app/event/getEventListByEventDealStatus',
  // 详情
  GETBYEVENTID:BASE_URL + 'handle/app/event/getEventByEventId/',
  //日志
  GETBYEVENlOGLIST:BASE_URL + 'handle/business/event/eventLog/getEventLogList/',
  //获取核实描述
  GETEVENTCODE:BASE_URL + 'handle/business/event/eventLog/getEventLogByEventIdAndTypeCode',
  //案件核查提交
  DEALEVENT:BASE_URL + 'handle/app/event/dealEvent',
  // 已办案件
 GETEVENTDEAL:BASE_URL + 'handle/app/event/getEventListIsDealStatus',
 //我的上报
 GETMYEVENTCASE:BASE_URL + 'handle/app/event/selectEventListByCreatUser',
  //获取派遣人员
  GETUERSERORGANIZATION:BASE_URL + 'handle/app/event/getUserListOrganizationId',
  //派遣获取机构人员
  GETORGANIZATUP:BASE_URL + 'handle/app/event/getChildOrganizationList/',
  // 派遣处置人员
  GETEVENTPQBY:BASE_URL + 'handle/app/event/eventPqByByJGJXY',
  //带派遣 回退
  GETEVENTGOBACK:BASE_URL + 'handle/app/event/eventPqHtByJgjxy',
  //带派遣 申请 延期缓办
  GETEVENTSLOW:BASE_URL + 'handle/app/event/eventDelayOrSlow',
  // 检测是否可以申请延期   
  GETEVENTDELAY:BASE_URL + 'handle/app/event/checkEventDelay',
  // 检测是否可以申请缓办
  GETEVENTHBSLOW:BASE_URL + 'handle/app/event/checkEventSlow',
  //机构接线员回转
  GETRETURNJXY:BASE_URL + 'handle/app/event/eventHzByJgjxy',
  //监理 驳回审核接口
  GETEVENTHZBY:BASE_URL + 'handle/app/event/eventHzOrBhByJL',
  //查询监理处置结果
  GETEVENTRESENT:BASE_URL + 'handle/app/event/selectEventInfoByJLSH_eventId/',
  //打卡
  ADDCLOCK:BASE_URL + 'handle/app/clock/addClock',
  // 打卡记录
  COLOCBYLIST:BASE_URL + 'handle/app/clock/selectClockByUserId/',
  //经纬度实时上传
  UPLOADAPPGPS:BASE_URL + 'handle/app/clock/addUserGps',
  // 督办接口
  EVENTOVERSEE:BASE_URL + 'handle/app/event/eventOverseeJGJXY_JL',
  //督办列表
  GETEVENTLISTBYEVENT:BASE_URL + 'handle/app/event/getEventListByeventOverseUser',
 //消息统计
  GETMESSAGEUNREAD:BASE_URL + 'handle/common/push/countUnRead',
  //消息列表
  GETMESSAGLIST:BASE_URL + 'handle/common/push/messageList',
  //标记已读
  GETMESSAGLISTREAD:BASE_URL + 'handle/common/push/read',
   //版本更新
  GETAPPVERSION:BASE_URL + 'handle/app/version/getAppVersionList',
  //一级类别下拉框
  FINDCATEGORYONE: FACTORY_URL + 'factory/collectApp/findCategoryOne',
  //二级类别下拉框
  FINDCATEGORYTWO: FACTORY_URL + 'factory/collectApp/findCategoryTwo',
  //通过基础设施表的id(动态查询设施表的属性字段)
  FINDFACILITIESTABLEFIELD: FACTORY_URL + 'factory/collectApp/findFacilitiesTableField',
  //新增设施
  INSERTFACILITY: FACTORY_URL + 'factory/collectApp/insertFacility',
  //上传的图片,与设施关联
  IMAGESRELEVANCEFACILITY: FACTORY_URL + 'factory/collectApp/imagesRelevanceFacility',
  Upload2: FACTORY_URL + 'factory/collectApp/uploadImages',
  //根据x,y坐标查询区域
  QUERYAREABYXY: FACTORY_URL + 'factory/collectApp/queryAreaByXy',
  IMAGEURL:IMAGE_URL,
  IMAGEURL1:IMAGE_URL1,
  FACTORY_FILE_URL: FACTORY_FILE_URL,
  COLLECTlOCATION: 'http://121.37.189.5:8000/location'
}
export default URL
